
Ext.define('js.inner.PeopleMergerAAddPage', {
    extend: 'Ext.form.Panel',
    requires: ['js.Util', 'js.ctrl.Common'],
    controller: 'Common',
    config: {
        bodyPadding: '0 20 0 20',
        layout: {
            type: 'vbox',
            align: 'stretch'
        }
    },
    hidenField: {
        region_id: undefined
    },
    fieldDefaults: {
        labelWidth:150,
        flex:1,
        xtype: 'panel',
        allowBlank: false
    },
    url:'publicUserManagementRoutes',
    initComponent: function () {

        Ext.QuickTips.init();
        Ext.form.Field.prototype.msgTarget = 'under';
        let peopleId = {
            xtype: 'textfield',
            name: 'user_id',
            id: 'user_id',
            value:this.user_id,
            hidden:true,
        };
        let peopleName = {
            xtype: 'textfield',
            name: 'user_name',
            id: 'user_name',
            value:this.user_name,
            allowBlank: false,
            msgTarget : 'qtip',
            height:36,
            margin:'15 0 10 0',
            labelSeparator: '',
            fieldLabel: '人员姓名:'
        };
        let groupName = {
            xtype: 'combobox',
            name: 'group_id',
            id: 'group_id',
            fieldLabel: '角色',
            value:this.group_id,
            height:36,
            margin:'10 0 10 0',
            allowBlank: false,
            triggerAction: 'all',
            editable : false,
            emptyText: '',
            width: '80%',
            displayField: 'dataType',
            valueField: 'value',
            store: Ext.create('js.store.wide.jueSe_filter')
        };
        let enableChar= {
            xtype: 'combobox',
            name: 'enable_char',
            id: 'enable_char',
            value:this.enable_char,
            allowBlank: false,
            msgTarget : 'qtip',
            height:36,
            margin:'10 0 10 0',
            labelSeparator: '',
            fieldLabel: '是否启用系统账户:',
            displayField: 'dataType',
            valueField: 'value',
            value:1,
            store: [
                {value: 1, dataType: '是'},
                {value: 2, dataType: '否'},
            ],
        };
        this.items = [peopleId,peopleName,groupName,enableChar];

        this.callParent(arguments);
    }
});